// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

/**
 * 商家添加
 * @param pram
 */
export function jiangliSave(data) {
  return request({
    url: '/admin/mission/save',
    method: 'post',
    data
  })
}


/**
 * 商家修改
 * @param pram
 */
export function jiangliUpdateApi(data) {
  // const param = ;
  return request({
    url: '/admin/mission/update',
    method: 'post',
    data
  })
}








/**
 * 商家分页列表
 * @param pram
 */
export function jiangliListApi(data) {
  return request({
    url: '/admin/mission/list',
    method: 'get',
    params: data
  })
}



/**
 * 商家商家刪除
 * @param pram
 */
export function jianglinDeleteApi(id) {
  return request({
    url: '/admin/mission/delete/' + id,
    method: 'get',
    params: {
      id
    }
  })
}

export function jiangliInfoApi(id) {
  return request({
    url: '/admin/mission/info/' + id,
    method: 'get',
    params: {
      id
    }
  })
}

// 用户浏览记录

export function userViewApi(params) {
  return request({
    url: '/admin/mission/viewList',
    method: 'get',
    params
  })
}
// 用户完成记录
export function userDoneApi(params) {
  return request({
    url: '/admin/mission/missionList',
    method: 'get',
    params
  })
}







